
	<!-- 已选修课程 -->
	<div class="selected_courses">
		<p class="selected_courses_show">您所选修的课程如下</p>
		<?php 
 			$studentController = new StudentModel(); 
			$electiveCourseInfo = $studentController->electiveCourse($_SESSION['studentInfo']['studentId']);
			/*var_export($electiveCourseInfo); */?>
		<div class="table_show">
			<table class="selected_courses_show_table">
			<tr>
				<th>课程编号</th><th>课程名</th><th>任课教师</th><th>当前人数</th><th>相关操作</th>
			</tr>
			<?php if(!empty($electiveCourseInfo)){
					foreach ($electiveCourseInfo as $row){
					?>
			<tr>
				<td><?php echo $row['course_id']?></td>
				<td><?php echo $row['course_name']?></td>
				<td><?php echo $row['course_teacher_name']?></td>
				<td><?php echo $row['course_student_count_current']?></td>
				<!-- 提交退选课的编号和对应学生学号 -->
				<?php $path = "<a href="."../../controller/StudentController.class.php?courseId=".$row['course_id']."&studentId=".$_SESSION['studentInfo']['studentId'].">退选</a>"?>
				<td><?php echo $path?></td>
			</tr>
			<?php 
					}
				}else{ 
				?>
			<tr><td class="table_empty_show" colspan="5">暂无选课信息!</td></tr>
			<?php }?>
		</table>
		</div>
	</div>